<template>
  <div>
    <el-dialog
      title="账号已激活"
      :visible.sync="dialogVisible"
      width="30%">
      <span>请您登录SRM系统。并于两周内完成供应商调查表填写， 否则系统将自动视为放弃注册。</span>
      <span slot="footer" class="dialog-footer">
        <el-button type="primary" @click="jump">确 定</el-button>
      </span>
    </el-dialog>
  </div>
</template>
<script>
 import axios  from 'axios'
  export default {
    data() {
      return {
        dialogVisible: false,  
      };
    },
    mounted(){
      this.submitForm();
    },
    methods: {
      submitForm(formInline) {
        this.axios.post(this.lib.config.host.vendorReg + "/newAccount/active/" + this.$route.params.id,{}).then((response) => {
            console.log(response);
            this.dialogVisible=true;  
          })
          .catch(function (error) {
            console.log(error);
            alert(error);
            this.dialogVisible=true;  
          });

      },
      jump(){
        this.$router.push('/login');
      }
      }
      
    }
</script>
